package com.bins.langchain.spring.ai.vector.store.controller;

import com.bins.langchain.spring.ai.vector.store.service.MilvusService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/spring/ai/vector")
public class VectorController {

    @Resource
    private MilvusService milvusService;

    /**
     * 增加向量
     */
    @RequestMapping("/addVector")
    public String addVector() {
        return milvusService.addVector();
    }

}